﻿using Microsoft.Extensions.DependencyInjection;
using StartsEAS_API.BLL.Interfaces.IEApplyB;
using StartsEAS_API.DAL.EApplyD;
using StartsEAS_API.Model;
using StartsEAS_API.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StartsEAS_API.BLL.EApplyB
{
    public class EApplyBLL : IEApplyBLL
    {
        private readonly StarsEASContext _context;
        private readonly EApplyDAL _eapplyDal;
        public EApplyBLL(IServiceScopeFactory context) {
            _context = context.CreateScope().ServiceProvider.GetRequiredService<StarsEASContext>();
            _eapplyDal = new(_context);
        }
        public ResultUtils GetAllEApply()
        {
            return _eapplyDal.GetAllEApply();
        }
    }
}
